org.eclipse.vtp.framework.common.configurations
Class ScriptConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.common.configurations.ScriptConfiguration
All Implemented Interfaces:
CommonConstants, IConfiguration

public class ScriptConfiguration
extends java.lang.Object
implements IConfiguration, CommonConstants

A single of branded configuration for executing a script block.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.common.configurations.CommonConstants
MAPPING_TYPE_EXPRESSION, MAPPING_TYPE_NONE, MAPPING_TYPE_STATIC, MAPPING_TYPE_VARIABLE, NAME_ASSIGNMENT, NAME_BRANCH, NAME_BRAND, NAME_DATA_TYPE, NAME_DISPATCH, NAME_ENTRY, NAME_EXIT, NAME_FIELD, NAME_INITIAL_VALUE, NAME_KEY, NAME_LEFT_OPERAND, NAME_NAME, NAME_OUTGOING, NAME_PATH, NAME_PRIMARY_FIELD, NAME_RIGHT_OPERAND, NAME_SCRIPT, NAME_SCRIPTING_LANGUGAGE, NAME_TYPE, NAME_URI, NAME_VALUE, NAME_VARIABLE_MAPPING, NAMESPACE_URI
 
Constructor Summary
ScriptConfiguration()
          Creates a new ScriptItemConfiguration.
 
Method Summary
 java.lang.String getScript()
          Returns the script to run.
 java.lang.String getScriptingLanguage()
          Returns the scripting language the script is in.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setScript(java.lang.String script)
          Sets the script to run.
 void setScriptingLanguage(java.lang.String scriptingLanguage)
          Sets the scripting language the script is in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptConfiguration

public ScriptConfiguration()
Creates a new ScriptItemConfiguration.

Method Detail

getScriptingLanguage

public java.lang.String getScriptingLanguage()
Returns the scripting language the script is in.

Returns:
The scripting language the script is in.

getScript

public java.lang.String getScript()
Returns the script to run.

Returns:
The script to run.

setScriptingLanguage

public void setScriptingLanguage(java.lang.String scriptingLanguage)
Sets the scripting language the script is in.

Parameters:
scriptingLanguage - The scripting language the script is in.

setScript

public void setScript(java.lang.String script)
Sets the script to run.

Parameters:
script - The script to run.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.